#include <QString>
#include <QtXml>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QToolButton>
#include <QObject>


#include <QList>

#ifndef APIALLOCINE_H
#define APIALLOCINE_H

class apiAllocine : public QObject
{

    Q_OBJECT

public :
        //Methodes
        void ListeFilmByName(QString titre);
        QDomDocument ListFilmByCode(int code);

private :
        //Attributs
        QUrl url;
        QNetworkRequest reqeteHttp;


private slots:
        //void result(QNetworkReply *reply);
        void messageErreur(QNetworkReply::NetworkError);
        void saveFile(QNetworkReply* r);



        //Methodes

};

#endif // APIALLOCINE_H
